@extends('app')

@section('content')
<div class="container-fluid">
    <div class="row-fluid">
        <div class="span12">
            <div class="tabbable" id="tabs-876069">
                <ul class="nav nav-tabs">
                    <li class="active">
                        <a href="{{ url('/admin/enterprise/test_record')}}">考试记录</a>
                    </li>
                    <!-- <li>
                        <a href="#panel-952476" data-toggle="tab">搜索</a>
                    </li> -->
                </ul>
                <div class="tab-content">
                    <!--列表开始-->
                    <div class="tab-pane active" id="panel-656128">
                        <h5 class="sub-header"></h5>
                        <div class="table-responsive">
                          <table class="table table-striped">
                            <thead>
                              <tr>
                                <th>编号</th>
                                <th>用户</th>
                                <th>职位</th>
                                <th>企业</th>
                                <th>试卷名称</th>
                                <th>分数</th>
                                <th>考试时间</th>
                              </tr>
                            </thead>
                            <tbody>
                            @foreach($exam_history as $res)

                                <tr id="news_{{ $res->id }}">
                                  <td>{{ $res->id }}</td>
                                  <td>
                                    <span>
                                      {{ $res->userinfo->name }}
                                    </span>
                                  </td>
                                  <td>
                                    <span style="">
                                     {{count($res->jobs)>0?$res->jobs->title:'系统考试'}}
                                    </span>
                                  </td>
                                  <td>
                                      <span style="color: #2ECC71;" >
                                        {{count($res->company)>0?$res->company->name:'系统考试'}}
                                      </span>
                                  </td>
                                  <td>
                                      <span class=" " style="">
                                        {{$res->exam->name}}
                                      </span>
                                  </td>
                                  <td>
                                      <span>
                                        {{ $res->score }}
                                      </span>
                                  </td>
                                  <td>
                                    <span>
                                      {{ $res->created_at }}
                                    </span>
                                  </td>
                                </tr>
                            @endforeach
                            </tbody>
                          </table>
                        </div>
                        <div>{!! $exam_history->render() !!} </div>
                    </div>
                    <!--列表结束-->
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
  // 鼠标滑过出现提示
  $(function () {
    $('[data-toggle="tooltip"]').tooltip();

  })


</script>
@endsection
